﻿using RabbitMQ.Client;
namespace EventBus.RabbitMQ
{
    public interface IConnectionChannel
    {
        /// <summary>
        /// 获取Channel
        /// </summary>
        /// <returns></returns>
        IModel GetChannel();

        /// <summary>
        /// 获取订阅者Channel
        /// </summary>
        /// <returns></returns>
        IModel GetSubscriberChannel();

        /// <summary>
        /// 创建连接
        /// </summary>
        /// <returns></returns>
        IConnection GetConnection();

        /// <summary>
        /// 交换机名称
        /// </summary>
        string ExchangeName { get; }
    }
}
